package com.hxkj.client.service;

import com.hxkj.domain.po.RankingManagement;
import com.platform.common.domain.result.ParameterDataStruct;
import com.platform.common.domain.result.ResultDataStruct;
import com.platform.common.domain.result.ResultMessageStruct;
import com.platform.common.domain.result.ResultPageStruct;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;


/**
 * @author yaosy
 * @create 2018年6月15日09:38:04
 * @desc 排行榜管理
 **/

@FeignClient(name = "cms-management")
public interface RankingManagementServiceClient {



    /**
     * 获取合作公司列表
     *
     * @param parameterDataStruct
     * @return 翻页数据
     * @throws Exception
     */
    @RequestMapping(value = "/ranking/getlist", method = RequestMethod.POST,consumes = "application/json;charset=UTF-8")
    public ResultPageStruct<RankingManagement> getlist(@RequestBody ParameterDataStruct<RankingManagement> parameterDataStruct)
            throws Exception;


    /**
     * 获取单条站点信息数据
     *
     * @param rankingManagement
     * @return 用户信息
     * @throws Exception
     */
    @RequestMapping(value = "/ranking/get", method = RequestMethod.POST,consumes = "application/json;charset=UTF-8")
    public ResultDataStruct<RankingManagement> get(@RequestBody RankingManagement rankingManagement) throws Exception;

    /**
     * 保存排行榜管理
     *
     * @param rankingManagement
     * @throws Exception
     */
    @RequestMapping(value = "/ranking/save", method = RequestMethod.POST,consumes = "application/json;charset=UTF-8")
    public ResultMessageStruct save(@RequestBody RankingManagement rankingManagement) throws Exception;


    /**
     * 修改排行榜
     *
     * @param rankingManagement
     * @throws Exception
     */
    @RequestMapping(value = "/ranking/modify", method = RequestMethod.POST,consumes = "application/json;charset=UTF-8")
    public ResultMessageStruct modify(@RequestBody RankingManagement rankingManagement) throws Exception;


    /**
     * 批量删除排行榜
     *
     * @param rankingManagement
     * @throws Exception
     */
    @RequestMapping(value = "/ranking/delete", method = RequestMethod.POST,consumes = "application/json;charset=UTF-8")
    public ResultMessageStruct delete(@RequestBody RankingManagement rankingManagement) throws Exception;



}
